home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2108 / 2108.xpi / content / edit.xul < prev    next >
Extensible Markup Language  |  2009-08-19  |  4KB  |  90 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://stylish/skin/edit.css" type="text/css"?>
  4.  
  5. <!DOCTYPE dialog [
  6.     <!ENTITY % edit SYSTEM "chrome://stylish/locale/edit.dtd">
  7.     %edit;
  8. ]>
  9.  
  10. <dialog
  11.     id="stylish"
  12.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  13.     buttons="accept,cancel,extra1,extra2"
  14.     persist="screenX screenY width height sizemode"
  15.     width="600"
  16.     height="400"
  17.     onload="init()"
  18.     onunload="dialogClosing()"
  19.     ondialogaccept="return save()"
  20.     ondialogcancel="return cancelDialog()"
  21.     ondialogextra2="preview();"
  22.     ondialogextra1="switchToInstall();"
  23.     buttonlabelaccept="&save;"
  24.     buttonaccesskeyaccept="&save.ak;"
  25.     buttonlabelextra2="&preview;"
  26.     buttonaccesskeyextra2="&preview.ak;"
  27.     buttonlabelextra1="&switchtoinstall;"
  28.     buttonaccesskeyextra1="&switchtoinstall.ak;">
  29.     
  30.     <script type="application/javascript" src="edit.js"/>
  31.     <script type="application/javascript" src="common.js"/>
  32.  
  33.     <script type='application/javascript' src='chrome://diavolo/content/tokeniser.js'/>
  34.     <script type='application/javascript' src='chrome://diavolo/content/highlighter.js'/>
  35.     <script type='application/javascript' src='chrome://diavolo/content/editor.js'/>
  36.     <script type='application/javascript' src='chrome://diavolo/content/grammar.js'/>
  37.     <script type='application/javascript' src='chrome://diavolo/content/selector.js'/>
  38.     <script type='application/javascript' src='chrome://diavolo/content/codecompletion.js'/>
  39.  
  40.     <script type="application/javascript" src="chrome://itsalltext/content/API.js"/>
  41.  
  42.     <stringbundle id="strings" src="chrome://stylish/locale/edit.properties"/>
  43.  
  44.     <keyset>
  45.         <key id="save-key" modifiers="control" key="S" oncommand="save()"/>
  46.         <key id="find-key" modifiers="control" key="F" oncommand="document.getElementById('findbar')._findField.focus()"/>
  47.     </keyset>
  48.  
  49.     <vbox flex="1">
  50.         <grid>
  51.             <columns>
  52.                 <column/>
  53.                 <column flex="1"/>
  54.             </columns>
  55.             <rows>
  56.                 <row align="center">
  57.                     <label control="name" accesskey="&name.ak;">&name;</label>
  58.                     <textbox id="name" flex="1"/>
  59.                 </row>
  60.                 <row align="center">
  61.                     <label control="tags" accesskey="&tags.ak;">&tags;</label>
  62.                     <textbox id="tags" flex="1"/>
  63.                 </row>
  64.             </rows>
  65.         </grid>
  66.         <textbox id="update-url" style="display:none"/>
  67.         <hbox id="editor-tools">
  68.             <button label="&insert;" accesskey="&insert.ak;" type="menu">
  69.                 <menupopup>
  70.                     <menuitem id="insert-html" label="&htmlnamespace;" accesskey="&htmlnamespace.ak;" oncommand="insertCodeAtStart(CSSHTMLNS);"/>
  71.                     <menuitem id="insert-xul" label="&xulnamespace;" accesskey="&xulnamespace.ak;" oncommand="insertCodeAtStart(CSSXULNS);"/>
  72.                     <menuitem id="insert-chrome-folder" label="&chromefolder;" accesskey="&chromefolder.ak;" oncommand="insertChromePath()"/>
  73.                     <menuitem id="insert-data-uri" label="&dataURI;" accesskey="&dataURI.ak;" oncommand="insertDataURI()"/>
  74.                 </menupopup>
  75.             </button>
  76.             <button id="itsalltext" label="&openintexternaleditor;" accesskey="&openintexternaleditor.ak;" itsalltext-control="internal-code" itsalltext-extension=".css" style="display: none;"/>
  77.             <checkbox id="wrap-lines" label="&wraplines;" accesskey="&wraplines.ak;" oncommand="changeWordWrap(this.checked)" style="display: none"/>
  78.         </hbox>
  79.         <deck flex="1">
  80.             <vbox>
  81.                 <textbox id="internal-code" multiline="true" flex="1"/>
  82.                 <findbar id="findbar" browserid="internal-code"/>
  83.             </vbox>
  84.             <sourceeditor id="diavolo-code" grammarURL="chrome://diavolo/content/css.xml"/>
  85.         </deck>
  86.         <vbox id="errors" style="display:none;"/>
  87.     </vbox>
  88.  
  89. </dialog>
  90.